<?php

class MicAction extends Action {
    public function index(){
        import('ORG.Net.Api');
        $apiurl = new Api();
        $uid=$_SESSION['phone_uid'];
        $sid=$_SESSION['s_id'];
        $app_kind=$_SESSION['ibg_k'];
        $securl=$apiurl->sec($sid,$uid,$uid,"yes",$app_kind);
        
        $sec=file_get_contents($securl);
        $secu=json_decode($sec,true);
        
        unset($secu['not_have']);
        unset($secu['size']);
        foreach($secu as $key=>$value){
            $this->assign("sec",$value);
        }
        
        //echo "<pre>";
//        dump($secu);
    	$this->display();
    }

    public function page(){
    	$this->display();
    }

}